﻿//using System;

//using mvcForum.Core.Abstractions.Interfaces;
//using mvcForum.Core.Interfaces.DependencyManagement;

//using mvcForum.Web.Services;
//using System.Collections.Generic;
//using mvcForum.Core;
//using System.Configuration;

//namespace mvcForum.Web.DependencyBuilders {

//    public class AntiSpamBuilder : IDependencyBuilder {

//        public void Configure(IDIContainer container) {
//            //// Add the Akismet service!
//            //container.Register<IAntiSpamService, ContentAntiSpamService>();
//            // Add the repeated posting service!
//            container.Register<IAntiSpamService, RepeatedPostingAntiSpamService>();
//        }

//        public void ValidateRequirements(IList<ApplicationRequirement> feedback) {
//            //String apiKey = ConfigurationManager.AppSettings["AkismetAPIKey"];
//            //if (String.IsNullOrWhiteSpace(apiKey)) {
//            //    feedback.Add(new ApplicationRequirement { Feedback = "No Akismet API key found or the key is empty, the Akismet anti-spam feature will not work.", Level = RequirementLevel.Warning });
//            //}
//            //else {
//            //    feedback.Add(new ApplicationRequirement { Feedback = "Akismet API key found.", Level = RequirementLevel.Info });
//            //}
//        }
//    }
//}